package org.jeecg.modules.wmhb.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 合同产品与事业部映射表
 * @Author: jeecg-boot
 * @Date:   2024-09-05
 * @Version: V1.0
 */
@Data
@TableName("wm_contract_dep")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wm_contract_dep对象", description="合同产品与事业部映射表")
public class WmContractDep implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
    /**合同ID*/
    @Excel(name = "合同ID", width = 15)
    @ApiModelProperty(value = "合同ID")
    @Dict(dictTable = "wm_contract", dicText = "name", dicCode = "id")
    private java.lang.String wmContractId;
	/**事业部ID*/
	@Excel(name = "事业部ID", width = 15)
    @ApiModelProperty(value = "事业部ID")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    private java.lang.String buId;
	/**合同产品树ID*/
	@Excel(name = "合同产品树ID", width = 15)
    @ApiModelProperty(value = "合同产品树ID")
    @Dict(dictTable = "wm_contract_product", dicText = "name", dicCode = "id")
    private java.lang.String wmContractProductId;
	/**所有层级父节点*/
	@Excel(name = "所有层级父节点", width = 15)
    @ApiModelProperty(value = "所有层级父节点")
    private java.lang.String ancestors;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private java.lang.String tenantId;
	/**删除者*/
	@Excel(name = "删除者", width = 15)
    @ApiModelProperty(value = "删除者")
    private java.lang.String deleteBy;
	/**删除时间*/
	@Excel(name = "删除时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "删除时间")
    private java.util.Date deleteTime;

    public WmContractDep(String wmContractId, String buId, String wmContractProductId) {
        this.wmContractId = wmContractId;
        this.buId = buId;
        this.wmContractProductId = wmContractProductId;
    }
}
